import { Application } from 'egg';

export default (app: Application) => {
    const {CHAR,INTEGER} = app.Sequelize;
    const model = app.model.define('GradeRule', {
        grade_rule_id: {
            type: CHAR(32),
            primaryKey: true
        },//主键id
        project_id: CHAR(32),//项目id
        position_id: CHAR(32),//职位id
        project_score:INTEGER(3),//分数
        created_by: CHAR(32),//创建人
        updated_by: CHAR(32),//更新人
        is_delete: CHAR(1),//标识是否删除（0：否，1：是）
    }, { tableName: 't_grade_rule' });
    return model;
};
export class GradeRule {
    grade_rule_id:string;
    project_id: string;
    position_id: string;
    project_score:number;
    created_by: string;
    updated_by: string;
    is_delete: string;
}